home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / shu194st.zoo / shellutils-1.9.4 / man / stty.man < prev    next >
Encoding:
Text File  |  1994-03-16  |  10.4 KB  |  449 lines

  1.  
  2.  
  3.  
  4. STTY(1L)                         STTY(1L)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        stty - change and print terminal    line settings
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        s✓st✓tt✓ty✓y [setting...]
  12.        s✓st✓tt✓ty✓y {-a,--all,-g,--help,--save,--version}
  13.  
  14. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  15.        This  manual  page  documents the GNU version of    s✓st✓tt✓ty✓y.  If
  16.        given no    arguments, s✓st✓tt✓ty✓y    prints the baud    rate, line disci-
  17.        pline  number  (on systems that support it), and    line set-
  18.        tings that have been changed from the values set    by  `stty
  19.        sane'.    Mode reading and setting are performed on the tty
  20.        line connected to the standard input.
  21.  
  22.        s✓st✓tt✓ty✓y  accepts  the  following  non-option  arguments  that
  23.        change  aspects    of  the    terminal line operation.  A `[-]'
  24.        before a    capability means that it can  be  turned  off  by
  25.        preceding it with a `-'.     Some arguments    are not    available
  26.        on all systems, since they use non-POSIX    extensions.  Such
  27.        arguments are marked below with `(np)'.
  28.  
  29.        Control settings:
  30.  
  31.  
  32.        [-]parenb
  33.           Generate parity bit in output and    expect parity bit
  34.           in input.
  35.  
  36.        [-]parodd
  37.           Set odd parity (even with    `-').
  38.  
  39.        cs5 cs6 cs7 cs8
  40.           Set character size to 5, 6, 7, or    8 bits.
  41.  
  42.        [-]hupcl    [-]hup
  43.           Send a hangup signal when    the last  process  closes
  44.           the tty.
  45.  
  46.        [-]cstopb
  47.           Use two stop bits    per character (one with    `-').
  48.  
  49.        [-]cread
  50.           Allow input to be    received.
  51.  
  52.        [-]clocal
  53.           Disable modem control signals.
  54.  
  55.        [-]crtscts (np)
  56.           Enable RTS/CTS handshaking.
  57.  
  58.        Input settings:
  59.  
  60.  
  61.  
  62.  
  63.  
  64. FSF               GNU Shell Utilities            1
  65.  
  66.  
  67.  
  68. STTY(1L)                         STTY(1L)
  69.  
  70.  
  71.        [-]ignbrk
  72.           Ignore breaks.
  73.  
  74.        [-]brkint
  75.           Breaks cause an interrupt    signal.
  76.  
  77.        [-]ignpar
  78.           Ignore parity errors.
  79.  
  80.        [-]parmrk
  81.           Mark   parity   errors   (with   a  255-0-character
  82.           sequence).
  83.  
  84.        [-]inpck
  85.           Enable input parity checking.
  86.  
  87.        [-]istrip
  88.           Clear high (8th) bit of input characters.
  89.  
  90.        [-]inlcr
  91.           Translate    newline    to carriage return.
  92.  
  93.        [-]igncr
  94.           Ignore carriage return.
  95.  
  96.        [-]icrnl
  97.           Translate    carriage return    to newline.
  98.  
  99.        [-]ixon
  100.           Enable XON/XOFF flow control.
  101.  
  102.        [-]ixoff    [-]tandem
  103.           Enable sending of    stop character    when  the  system
  104.           input  buffer  is     almost    full, and start    character
  105.           when it becomes almost empty again.
  106.  
  107.        [-]iuclc    (np)
  108.           Translate    uppercase characters to    lowercase.
  109.  
  110.        [-]ixany    (np)
  111.           Allow any    character to  restart  output  (only  the
  112.           start character with `-').
  113.  
  114.        [-]imaxbel (np)
  115.           Enable  beeping  and not flushing    input buffer if    a
  116.           character    arrives    when the input buffer is full.
  117.  
  118.        Output settings:
  119.  
  120.  
  121.        [-]opost
  122.           Postprocess output.
  123.  
  124.  
  125.  
  126.  
  127.  
  128. FSF               GNU Shell Utilities            2
  129.  
  130.  
  131.  
  132. STTY(1L)                         STTY(1L)
  133.  
  134.  
  135.        [-]olcuc    (np)
  136.           Translate    lowercase characters to    uppercase.
  137.  
  138.        [-]ocrnl    (np)
  139.           Translate    carriage return    to newline.
  140.  
  141.        [-]onlcr    (np)
  142.           Translate    newline    to carriage return-newline.
  143.  
  144.        [-]onocr    (np)
  145.           Do not print carriage returns in the first  column.
  146.  
  147.        [-]onlret (np)
  148.           Newline performs a carriage return.
  149.  
  150.        [-]ofill    (np)
  151.           Use fill (padding) characters instead of timing for
  152.           delays.
  153.  
  154.        [-]ofdel    (np)
  155.           Use delete characters  for  fill    instead     of  null
  156.           characters.
  157.  
  158.        nl1 nl0 (np)
  159.           Newline delay style.
  160.  
  161.        cr3 cr2 cr1 cr0 (np)
  162.           Carriage return delay style.
  163.  
  164.        tab3 tab2 tab1 tab0 (np)
  165.           Horizontal tab delay style.
  166.  
  167.        bs1 bs0 (np)
  168.           Backspace    delay style.
  169.  
  170.        vt1 vt0 (np)
  171.           Vertical tab delay style.
  172.  
  173.        ff1 ff0 (np)
  174.           Form feed    delay style.
  175.  
  176.        Local settings:
  177.  
  178.  
  179.        [-]isig
  180.           Enable interrupt,    quit, and suspend special charac-
  181.           ters.
  182.  
  183.        [-]icanon
  184.           Enable erase, kill, werase, and rprnt special char-
  185.           acters.
  186.  
  187.        [-]iexten
  188.           Enable non-POSIX special characters.
  189.  
  190.  
  191.  
  192. FSF               GNU Shell Utilities            3
  193.  
  194.  
  195.  
  196. STTY(1L)                         STTY(1L)
  197.  
  198.  
  199.        [-]echo
  200.           Echo input characters.
  201.  
  202.        [-]echoe, [-]crterase
  203.           Echo erase characters as backspace-space-backspace.
  204.  
  205.        [-]echok
  206.           Echo a newline after a kill character.
  207.  
  208.        [-]echonl
  209.           Echo newline even    if not echoing other  characters.
  210.  
  211.        [-]noflsh
  212.           Disable  flushing     after interrupt and quit special
  213.           characters.
  214.  
  215.        [-]xcase    (np)
  216.           Enable input and output of uppercase characters  by
  217.           preceding     their    lowercase  equivalents    with `\',
  218.           when icanon is set.
  219.  
  220.        [-]tostop (np)
  221.           Stop background jobs that    try to write to    the  ter-
  222.           minal.
  223.  
  224.        [-]echoprt [-]prterase (np)
  225.           Echo  erased  characters    backward, between `\' and
  226.           '/'.
  227.  
  228.        [-]echoctl [-]ctlecho (np)
  229.           Echo control  characters    in  hat     notation  (`^c')
  230.           instead of literally.
  231.  
  232.        [-]echoke [-]crtkill (np)
  233.           Echo  the     kill  special    character by erasing each
  234.           character    on the line as indicated by  the  echoprt
  235.           and  echoe  settings, instead of by the echoctl and
  236.           echok settings.
  237.  
  238.        Combination settings:
  239.  
  240.  
  241.        [-]evenp    [-]parity
  242.           Same as parenb -parodd  cs7.   With  `-',     same  as
  243.           -parenb cs8.
  244.  
  245.        [-]oddp
  246.           Same  as    parenb    parodd    cs7.   With  `-', same as
  247.           -parenb cs8.
  248.  
  249.        [-]nl  Same as -icrnl -onlcr.  With  `-',  same    as  icrnl
  250.           -inlcr -igncr onlcr -ocrnl -onlret.
  251.  
  252.        ek     Reset  the  erase     and  kill  special characters to
  253.  
  254.  
  255.  
  256. FSF               GNU Shell Utilities            4
  257.  
  258.  
  259.  
  260. STTY(1L)                         STTY(1L)
  261.  
  262.  
  263.           their default values.
  264.  
  265.        sane   Same as cread -ignbrk brkint  -inlcr  -igncr  icrnl
  266.           -ixoff  -iuclc  -ixany  imaxbel opost -olcuc -ocrnl
  267.           onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
  268.           vt0 ff0 isig icanon iexten echo echoe echok -echonl
  269.           -noflsh -xcase -tostop -echoprt echoctl echoke, and
  270.           also  sets  all special characters to their default
  271.           values.
  272.  
  273.        [-]cooked
  274.           Same as brkint ignpar istrip icrnl ixon opost  isig
  275.           icanon,  plus  sets  the    eof and    eol characters to
  276.           their default values if they are the  same  as  the
  277.           min and time characters.    With `-', same as raw.
  278.  
  279.        [-]raw Same  as    -ignbrk     -brkint  -ignpar  -parmrk -inpck
  280.           -istrip -inlcr -igncr -icrnl  -ixon  -ixoff  -iuclc
  281.           -ixany  -imaxbel    -opost -isig -icanon -xcase min    1
  282.           time 0.  With `-', same as cooked.
  283.  
  284.        [-]cbreak
  285.           Same as -icanon.
  286.  
  287.        [-]pass8
  288.           Same as -parenb -istrip cs8.   With  `-',     same  as
  289.           parenb istrip cs7.
  290.  
  291.        [-]litout
  292.           Same as -parenb -istrip -opost cs8.  With    `-', same
  293.           as parenb    istrip opost cs7.
  294.  
  295.        [-]decctlq (np)
  296.           Same as -ixany.
  297.  
  298.        [-]tabs (np)
  299.           Same as tab0.  With `-', same as tab3.
  300.  
  301.        [-]lcase    [-]LCASE (np)
  302.           Same as xcase iuclc olcuc.
  303.  
  304.        crt    Same as echoe echoctl echoke.
  305.  
  306.        dec    Same as echoe echoctl echoke -ixany, and also  sets
  307.           the interrupt special character to Ctrl-C, erase to
  308.           Del, and kill to Ctrl-U.
  309.  
  310.        Special characters:
  311.  
  312.  
  313.        The special characters' default values vary from    system to
  314.        system.     They are set with the syntax `name value', where
  315.        the names are listed below and  the  value  can    be  given
  316.        either literally, in hat    notation (`^c'), or as an integer
  317.  
  318.  
  319.  
  320. FSF               GNU Shell Utilities            5
  321.  
  322.  
  323.  
  324. STTY(1L)                         STTY(1L)
  325.  
  326.  
  327.        which may start with `0x' to indicate hexadecimal, `0'  to
  328.        indicate     octal,     or  any other digit to    indicate decimal.
  329.        Giving a    value of `^-' or `undef'  disables  that  special
  330.        character.
  331.  
  332.  
  333.        intr   Send an interrupt    signal.
  334.  
  335.        quit   Send a quit signal.
  336.  
  337.        erase  Erase the    last character typed.
  338.  
  339.        kill   Erase the    current    line.
  340.  
  341.        eof    Send an end of file (terminate the input).
  342.  
  343.        eol    End the line.
  344.  
  345.        eol2 (np)
  346.           Alternate    character to end the line.
  347.  
  348.        swtch (np)
  349.           Switch to    a different shell layer.
  350.  
  351.        start  Restart the output after stopping    it.
  352.  
  353.        stop   Stop the output.
  354.  
  355.        susp   Send a terminal stop signal.
  356.  
  357.        dsusp (np)
  358.           Send  a  terminal     stop  signal  after flushing the
  359.           input.
  360.  
  361.        rprnt (np)
  362.           Redraw the current line.
  363.  
  364.        werase (np)
  365.           Erase the    last word typed.
  366.  
  367.        lnext (np)
  368.           Enter the    next character typed literally,     even  if
  369.           it is a special character.
  370.  
  371.        Special settings:
  372.  
  373.  
  374.        min N  Set the minimum number of    characters that    will sat-
  375.           isfy a read until    the time value has expired,  when
  376.           -icanon is set.
  377.  
  378.        time N Set  the    number of tenths of a second before reads
  379.           time out if the min number of characters    have  not
  380.           been read, when -icanon is set.
  381.  
  382.  
  383.  
  384. FSF               GNU Shell Utilities            6
  385.  
  386.  
  387.  
  388. STTY(1L)                         STTY(1L)
  389.  
  390.  
  391.        ispeed N
  392.           Set the input speed to N.
  393.  
  394.        ospeed N
  395.           Set the output speed to N.
  396.  
  397.        rows N (np)
  398.           Tell the kernel that the terminal    has N rows.
  399.  
  400.        cols N columns N    (np)
  401.           Tell the kernel that the terminal    has N columns.
  402.  
  403.        size (np)
  404.           Print  the number    of rows    and columns that the ker-
  405.           nel thinks the terminal has.  (Systems  that  don't
  406.           support  rows  and cols in the kernel typically use
  407.           the  environment    variables   L✓LI✓IN✓NE✓ES✓S   and      C✓CO✓OL✓LU✓UM✓MN✓NS✓S
  408.           instead;    however,  GNU s✓st✓tt✓ty✓y does    not know anything
  409.           about them.)
  410.  
  411.        line N (np)
  412.           Use line discipline N.
  413.  
  414.        speed  Print the    terminal speed.
  415.  
  416.        N      Set the input and    output speeds to N.  N can be one
  417.           of: 0 50 75 110 134 134.5    150 200    300 600    1200 1800
  418.           2400 4800    9600 19200 38400 exta extb.  exta is  the
  419.           same  as 19200; extb is the same as 38400.  0 hangs
  420.           up the line if -clocal is    set.
  421.  
  422.    O✓OP✓PT✓TI✓IO✓ON✓NS✓S
  423.        _✓-_✓a_✓, _✓-_✓-_✓a_✓l_✓l
  424.           Print all    current    settings in human-readable  form.
  425.  
  426.        _✓-_✓-_✓h_✓e_✓l_✓p Print  a    usage message on standard output and exit
  427.           successfully.
  428.  
  429.        _✓-_✓g_✓, _✓-_✓-_✓s_✓a_✓v_✓e
  430.           Print all    current    settings in a form  that  can  be
  431.           used  as    an  argument  to  another s✓st✓tt✓ty✓y command to
  432.           restore the current settings.
  433.  
  434.        _✓-_✓-_✓v_✓e_✓r_✓s_✓i_✓o_✓n
  435.           Print version information    on standard  output  then
  436.           exit successfully.
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448. FSF               GNU Shell Utilities            7
  449.